/**
 * 
 */
package hopcroft;

import helpers.HandleHashSet;

/**
 * @author LE VAN LINH
 *
 */
public class Splitter {
	/***
	 * A splitter is a pair of subset P and letter a (P,a)
	 */
	HandleHashSet setP;
	String letter;
	
	public HandleHashSet getSetP() {
		return setP;
	}
	public void setSetP(HandleHashSet setP) {
		this.setP = setP;
	}
	public String getLetter() {
		return letter;
	}
	public void setLetter(String letter) {
		this.letter = letter;
	}
	/**
	 * Constructor for splitter
	 * @param setP
	 * @param letter
	 */
	public Splitter(HandleHashSet setP, String letter) {		
		this.setP = setP;
		this.letter = letter;
	}
	
	@Override
	public boolean equals(Object arg0) {
		Splitter spl = (Splitter)arg0;
		return this.getLetter().equals(spl.getLetter())
				&& this.getSetP().equals(spl.getSetP());
	}
}
